Skip to content

proposal(quota-plane): lower the caution threshold NEAR_PCT 85 → 80 — pools enter caution at a lower measured percent (weekly walls arrive systematically early) - #12764

Merged
dezren39 merged 1 commit into
mainfrom
quota-proposal/caution-margin/NEAR_PCT/85-to-80
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
quota-proposal/caution-margin/NEAR_PCT/85-to-80

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

proposal(quota-plane): lower the caution threshold NEAR_PCT 85 → 80 — pools enter caution at a lower measured percent (weekly walls arrive systematically early)

Generated by the Stage-3 re-weighting proposal generator (S6, #12700; design D5).
This PR was opened by the generator, not hand-written. It proposes; it does not
merge — merge authority is unchanged (Felix/Drew), and the #1342 controlled A/B
gate applies before this proposal class becomes routine.

Proposal key: caution-margin:NEAR_PCT:85->80
Class: caution-margin
Target: the caution margin NEAR_PCT (derive.ts), the threshold at which a pool enters the caution/near tier — pm-stack/aggregator/src/derive.ts: 85 → 80

Rationale

Weekly walls arrive systematically earlier than the linear pace projects: meta (median signed wall error +4741.1 min over 269 scored forecasts, precision 0.529, recall 0.647); anthropic:claude-pro (median signed wall error +794.6 min over 273 scored forecasts, precision 1, recall 0.582). A pool enters the caution tier when a window's measured percent reaches NEAR_PCT (derive.ts); lowering the threshold by one step (85 → 80) means pools enter caution at a lower measured percent — earlier in the window — in exactly the windows whose walls the forecast under-calls. D4 reserves margin changes to this proposal mechanism; the #1342 controlled A/B gate applies before the margin class becomes routine.

Evidence — accuracy record (S2)

Accuracy ledger generated 2026-11-23T00:00:54.628Z; model: quota-analytics.projectWindow pace v1 (design D2, via S1 #12695).
Store span: 20663 records (19735 percent readings), 2026-10-20T12:00:00.000Z → 2026-11-23T00:00:54.628Z.

pool window scored precision recall median signed wall error (min) wall samples walled periods
meta weekly 269 0.529 0.647 +4741.1 110 3/4
anthropic:claude-pro weekly 273 1 0.582 +794.6 159 3/4
_openai.main weekly 137 0.81 1 -406.3 111 5/8
_openai.alt weekly 169 1 0.958 -155 161 4/6
cline-pass weekly 105 0.244 0.957 +2.7 22 1/3
opendesign weekly 175 1 0.903 +167.1 158 5/5

Evidence — forecast (S1)

no forecast file supplied to this run (the accuracy ledger alone grounds the proposal; the live forecast's current projections join the pack when the generator runs against the aggregator state dir)

Evidence — shadow diff (S3)

no shadow record supplied to this run (the caution-margin class is the one S3 shadows; its diff summary joins the pack when the generator runs against the aggregator state dir, and the post-change shadow record is what S7 scores the expected effect against)

Expected effect (scored by the weekly review)

In the four weeks after this lands, the fraction of realized weekly walls in the grounding pools (meta, anthropic:claude-pro) that were preceded by at least one gatherer tick with the pool in the caution/near state rises versus the pre-change baseline computed the same way, and no scoreable weekly baseline's wall-before-reset precision falls below 0.5.

  • Metric: caution-tier lead coverage of realized weekly walls (shadow history × realized wall instants)
  • Scored by: the S7 weekly review, from quota-shadow-placement-history.jsonl and the accuracy ledger

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… pools enter caution at a lower measured percent (weekly walls arrive systematically early)

Generated by the Stage-3 re-weighting proposal generator (S6, #12700; design D5). Proposal key: caution-margin:NEAR_PCT:85->80. The full evidence pack is the PR body.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 01:46
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f378a519-06cf-4240-bd42-a9f129ef5c39
Commits

Reviewing files that changed from the base of the PR and between 8f07c02 and dd7c8bd.

Files selected for processing: 1

  • pm-stack/aggregator/src/derive.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Disposition at review (felix): evidence verified, direction corrected — merge HELD pending the #1342 gate.

The corrected generator (PR #12762, merged) re-ran on the same S2 ledger and grounded this proposal properly: 2 qualifying early-wall pools (meta +4,741 min over 269 scored; anthropic:claude-pro +795 over 273, precision 1.0 anchor), 0 late-wall counter-evidence, diff is exactly the one-line NEAR_PCT 85 → 80 edit, and the direction now matches the mechanism (a pool reads "near" at windowPercent >= NEAR_PCT, so 80 enters caution at a lower measured percent — earlier, as the early-wall evidence requires).

Held, not merged: this PR's own evidence pack notes the #1342 controlled A/B gate, and #1342 ("Controlled pool tests: A/B real task batches before any pool change lands") is OPEN. NEAR_PCT drives the pool-state near/walled derivation the babysitter consumes, so this is a pool change in the gate's sense. Felix has put the call to Drewry (merge now on the strength of the backtest evidence, or hold for the A/B gate); the PR stays open and mergeable meanwhile. Note the live aggregator only picks the change up at the next laptop rebuild either way.

@dezren39
dezren39 merged commit 3e40f48 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the quota-proposal/caution-margin/NEAR_PCT/85-to-80 branch November 23, 2026 02:28
@dezren39

Copy link
Copy Markdown
Member Author

Merged on Drewry's decision (2026-11-22). Felix held this merge pending the #1342 controlled A/B gate and put the call to Drewry with the evidence on the table; Drewry chose "merge now". Recorded plainly so the gate's history stays honest: this first caution-margin step lands on the strength of the S2 backtest evidence (meta weekly +4,741 min median signed wall error over 269 scored; anthropic:claude-pro +795 over 273, precision 1.0 anchor; zero late-wall counter-evidence) rather than after a controlled A/B run. The proposal's expected effect is scored by the S7 weekly review from the shadow history × realized walls, as its evidence pack specifies; live behaviour changes only when the laptop aggregator next rebuilds onto a main containing this merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant